'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  // const { router,middleware, controller,io } = app;
  const {
    router,
    middleware,
    controller
  } = app;
  //后台管理员类
  require('./router/admin')(app);
  require('./router/article')(app);
  //回复类
  require('./router/reply')(app);
  //其他券
  require('./router/other')(app);
  //通用类
  require('./router/normal')(app);
  //通用类
  require('./router/until')(app);
 

  router.get('/', controller.home.index);
  router.get('/admin', controller.home.admin);
};